using JetBrains.Annotations;
using UnityEngine;

namespace BTEditor
{
    public static class BTNodeFactory
    {
        public static BTNode CreateNode(string label,EditorNode node,Vector2 pos)
        {
            Rect rect = new Rect(pos.x,pos.y,BTEditorConst.Default_Width,BTEditorConst.Default_Height);
            BTNode btNode = new BTNode(label,node, rect);
            BTEditorProperty.Instance.AddNode(btNode);
            return btNode;
        }
    }
}